import os

# print os.getcwd()
# file = 'interface/app/log/rundata/data_groups.pkl'
# f = open(file, 'r')
# auth = f.read()
# print auth
# f.close()
# print u"\u4f60\u5df2\u5f00\u542f\u767b\u5f55\u4fdd\u62a4\uff0c\u4e3a\u4fdd\u62a4\u8d26\u53f7\u5b89\u5168\uff0c\u8bf7\u5347\u7ea7\u81f3\u6700\u65b0\u7248"
# print {
#     "code": 4035009,
#     "message": u"\u4e3a\u4fdd\u969c\u4f60\u7684Blued\u8d26\u53f7\u5b89\u5168\uff0c\u5f53\u524d\u8bbe\u5907\u9700\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1\uff0c\u901a\u8fc7\u540e\u4e0b\u6b21\u65e0\u9700\u9a8c\u8bc1\u3002",
#     "data": [{
#         "_": "rH3Dn2Ch7GE1w3hu1mbXLTssDCg1A8Bd+QNvmxVHc3UnD1dPcBHfCJ27ukFFxmSQYZcDXlsb6P\/Qd2g9Fx2B6ZnS9XSVS6oS2G1wXOSstKRD5RneacSyIUAFbor+Xu9Ox1YX8sZMHc606S+ODSkSy\/pB"
#     }],
#     "request_id": "12841066d88d81e09eb909ef4ea37700",
#     "request_time": 1503989218.8289,
#     "response_time": 1503989218.8758
# }['message']
# a = {
#     "1": 1,
#     "2": 2,
#     "3": 3
# }
# for key, value in a.items():
#     print key, value
#
# import re
# with open('info.plist', 'r') as f:
#     text = f.read().replace('\n', '')
#     key = r"CFBundleShortVersionString(.*?)</string>"
#     value = "string>(.*)"
#     print re.findall(key, text)
    # print re.findall(value, re.findall(key, text)[0])[0]
# text = "<key>CFBundleShortVersionString</key><string>6.1.6</string><key>CFBundleSignature</key></string>"
# p = re.compile()


